drain transferrer read handle when shutting it down
authorJoey Hess <joeyh@joeyh.name>
Thu, 22 Sep 2022 18:35:20 +0000 (14:35 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 22 Sep 2022 18:39:39 +0000 (14:39 -0400)
commit6e3c9bea2e33249efe4349365787f887e5ba059b
tree0020866be860f9a078b873324b1caad887d1856c
parentf015f3e8e383c37a88eabe6bea64fe3edfd21265
drain transferrer read handle when shutting it down

Fixes updating git index file after getting an unlocked file when
annex.stalldetection is set.

The transferrer may want to send additional protocol messages when it's
shut down. Closing the read handle prevented it from doing that, and caused
it to crash rather than cleanly shutting down.

Draining the handle without processing the protocol seemed ok to do,
because anything it outputs is going to be some side message displayed
at shutdown. Displaying those once per transferrer process that is running
seems unncessary.

Sponsored-by: Dartmouth College's DANDI project
Annex/TransferrerPool.hs
CHANGELOG
doc/bugs/reports_file___34__modified__34___whenever_it_is_not/comment_13_5c03731700b2a025755fb06c9a96f331._comment [new file with mode: 0644]